document.writeln('<nav class="flex maxscreen">');
document.writeln('    <div class="logo_info flex">');
document.writeln('        <a class="logo">');
document.writeln('            <img src="common/img/logo.png">');
document.writeln('        </a>');
document.writeln('        <span></span>');
document.writeln('        <div class="address">');
document.writeln('            <h2>联系我们</h2>');
document.writeln('            <p>18826362934</p>');
document.writeln('        </div>');
document.writeln('    </div>');
document.writeln('    <ul class="flex">');
document.writeln('        <li to=""><a href="index.html">首页</a></li>');
document.writeln('        <li to="course"><a href="index.html#course">课程分类</a></li>');
document.writeln('        <li to="special"><a href="index.html#special">教育特色</a></li>');
document.writeln('        <li to="introduce"><a href="index.html#show">企业展示</a></li>');
document.writeln('    </ul>');
document.writeln('</nav>');
// 移动端
document.writeln('<nav class="minscreen flex">');
document.writeln('	<a href="index.html">');
document.writeln('		<img src="common/img/mobile/logo.png">');
document.writeln('	</a>');
document.writeln('	<a href="tel:18826362934">');
document.writeln('		<img src="common/img/mobile/contact.png">');
document.writeln('		18826362934');
document.writeln('	</a>');
document.writeln('</nav>');

let currentPage=window.location.href.split('/')
currentPage=currentPage[currentPage.length-1].replace(".html",'')
currentPage=currentPage=='index'?'':currentPage
$.each($("nav li"),function(i,val){ 
	if($(val).attr("to")==currentPage){
		$(val).addClass('active')
	}
})